const withBundleAnalyzer = require('@next/bundle-analyzer')({
  enabled: process.env.ANALYZE === 'true',
});

/** @type {import('next').NextConfig} */
const nextConfig = {
  reactStrictMode: true,
  poweredByHeader: false,
  compress: true,
  images: {
    domains: ['your-domain.com'],
  },
  webpack: (config, { dev, isServer }) => {
    // 自定义 webpack 配置
    return config;
  },
};

module.exports = withBundleAnalyzer(nextConfig); 